<%@page import="models.Domain"%>
<%@page import="java.util.ArrayList"%>
<%@page import="models.RecentSite"%>
<%@page import="helpers.HeaderHelper"%>
<%@page import="models.IpTrack"%>
<%
	HeaderHelper headerHelper = (HeaderHelper) request.getAttribute("headerHelper");
	IpTrack ipTrack = (IpTrack) request.getAttribute("ipTrack");
%>
<jsp:include page="/layouts/header.jsp">
    <jsp:param name="title" value="<%=headerHelper.getTitle()%>" />
    <jsp:param name="description" value="<%=headerHelper.getDescription()%>" />
    <jsp:param name="keywords" value="<%=headerHelper.getKeywords()%>" />
    <jsp:param name="ogite_name" value="<%=headerHelper.getOgite_name()%>" />
    <jsp:param name="ogtitle" value="<%=headerHelper.getOgtitle()%>" />
    <jsp:param name="ogurl" value="<%=headerHelper.getOgurl()%>" />
    <jsp:param name="ogimage" value="<%=headerHelper.getOgimage()%>" />
    <jsp:param name="ogescription" value="<%=headerHelper.getOgescription()%>" />
</jsp:include>

		<!-- 2. content -->
		<div id="content">
			<!-- 3. ip-info -->
			<div class="site-header ip-info">
				<h2>Ip: <%=ipTrack.getIp() %></h2>
				<table width="100%">
					<tr>
						<td width="30%">IPS: </td>
						<td><%=ipTrack.getIp()%></td>
					</tr>
					<tr>
						<td>Organization: </td>
						<td><%=ipTrack.getOrganization()%></td>
					</tr>
					<tr>
						<td>Proxy: </td>
						<td><%=ipTrack.getProxy()%></td>
					</tr>
					<tr>
						<td>Type: </td>
						<td><%=ipTrack.getType()%></td>
					</tr>
					<tr>
						<td>Assignment: </td>
						<td><%=ipTrack.getAssignment()%></td>
					</tr>
					<tr>
						<td>Country: </td>
						<td><%=ipTrack.getCountry()%></td>
					</tr>
					<tr>
						<td>State/Region: </td>
						<td><%=ipTrack.getState()%></td>
					</tr>
					<tr>
						<td>City: </td>
						<td><%=ipTrack.getCity()%></td>
					</tr>
					<tr>
						<td>Last updated: </td>
						<td><%=ipTrack.getDate()%></td>
					</tr>
				</table>
				
				<!-- google adsense -->
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-1271973886625217";
				/* domainworlds 728x90 */
				google_ad_slot = "0571679791";
				google_ad_width = 728;
				google_ad_height = 90;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				<!-- end google adsense -->
			</div>
			<!-- 3. end ip-info -->
			
			<!-- 3. site-info -->
			<div class="site-info">
					<h3>Other sites hosted on: <%=ipTrack.getIp() %></h3>
					<div>
						<%
						for (int i = 0; i < ipTrack.getDomain().size(); i++) {
						%>
						<a href="/s/<%=ipTrack.getDomain().get(i)%>" style="padding-right: 20px;"><%=ipTrack.getDomain().get(i)%></a>
						<% } %>
					</div>
			</div>
			<!-- 3. end site-info -->
			
			<!-- 3. site-info -->
			<div class="site-info">
				<!-- google adsense -->
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-1271973886625217";
				/* domainworlds 728x90 */
				google_ad_slot = "0571679791";
				google_ad_width = 728;
				google_ad_height = 90;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				<!-- end google adsense -->
			</div>
			<!-- 3. end ip-info -->
			
		</div>
		<!-- 2. end content -->
		
		<!-- 2. side -->
		<div id="side">
			<!-- 3. block -->
			<div class="block">
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-1271973886625217";
				/* domainworlds 300x250 */
				google_ad_slot = "8080276388";
				google_ad_width = 300;
				google_ad_height = 250;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site Update</h3>
				<div class="lst">
					<ul>
					<%
						ArrayList<Domain> recentSiteUpdate = RecentSite.getRecentSiteUpdate();
						for (int i = 0; i < recentSiteUpdate.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteUpdate.get(i).getName()%>"><%=recentSiteUpdate.get(i).getName()%></a></li>
					<%	} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
			
			<!-- 3. block -->
			<div class="block">
				<h3>Recent Site View</h3>
				<div class="lst">
					<ul>
						<%
						ArrayList<String> recentSiteView = RecentSite.getRecentSiteView();
						for (int i = 0; i < recentSiteView.size(); i++) {
					%>
						<li><a href="/s/<%=recentSiteView.get(i)%>"><%=recentSiteView.get(i)%></a></li>
					<%	} %>
					</ul>
				</div>
			</div>
			<!-- 3. end block -->
		</div>
		<!-- 2. end side -->
		
		<div class="clear"></div>				
<jsp:include page="/layouts/footer.jsp">
    <jsp:param name="language" value="1" />
</jsp:include>